package com.example.api.service;


import com.example.common.entity.CodeQualityForPR;
import com.example.common.entity.CodeQualityResult;
import com.example.common.entity.PRInfo;

import java.util.List;

/**
 * @author DestinyCc
 * @date 2022/4/16
 */
public interface CodeQualityService {
    /**
     * 计算code quality
     * @param owner
     * @param repo
     * @param appId
     * @param tenantId
     * @return
     */
    Long calculateCodeQuality(String appId, String tenantId, String owner, String repo);

    CodeQualityResult getCodeQualityResult(Long resultId, String tenantId);

    List<CodeQualityForPR> getPRCodeQuality(String repoPath, String remotePath);

    void extractFiles(PRInfo prInfo);
}
